import type * as UserType from './type';
import { post } from '@/utils/request';

// 学号密码登录
export const userLogin = (data: UserType.ILoginReq) => {
  return post<UserType.ILoginResData>({
    url: '/student/login',
    data,
  });
};

// 微信登录
export const userLoginByWechat = (data: UserType.ILoginReq) => {
  return post<UserType.ILoginResData>({
    url: '/student/login/wx',
    data,
  });
};
